//  toast提示
const toast = (title, icon='none', duration = 3000) => {
  uni.showToast({
    title,icon,duration
  })
}

toast.err = (title, duration = 3000) => {
  uni.showToast({
    title,
    icon:"error",
    duration
  })
}

export default toast